package com.example.attempt.service;

import com.example.attempt.entity.Homework;

import java.time.LocalDateTime;
import java.util.List;

public interface HomeworkService {
    public int addHomework(Homework homework);
    public int getNowHid();
    public Homework queryByHid(int hid);
    public List<Homework> queryByCid(String cid);
    public List<Homework> queryByTid(String tid);
    public int updateRate(int hid,float stu,float assist,float teacher);
    public int updateHomework(Homework homework);
    public int updateIsDistribute(int hid, int isDistribute);
    public int updateIsPublish(int hid, int isPublish);
    public int updateIsCheck(int hid, int isCheck);
    public int updateDtime(LocalDateTime dtime, int hid);
    public int setThreshold(int hid, double threshold);
    public int setLink(String link, int hid);
}
